.historyModal {
  :global(.semi-modal-header),
  :global(.semi-modal-footer) {
    padding: 0 24px;
  }

  :global(.semi-modal-content) {
    padding: 0;

    :global(.semi-modal-body) {
      overflow: auto;
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }
  }

  .historyModalList {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    width: 1168px;
    max-height: 628px;

    .historyModalItem {
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
      border-radius: 4px;
      width: 200px;
      height: 200px;
      overflow: hidden;

      &.selectedItem {
        border: 2px solid #326dff;
      }
    }

    .img {
      width: 100%;
      height: 100%;
    }
  }

  .historyModalButton {
    display: flex;
    gap: 10px;
    justify-content: flex-end;

    .button {
      width: 170px;
    }
  }

  .customFooterTitle {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  /* 未选中按钮样式：黑色背景，白色文字，不加粗 */
  .unselectedButton {
    background-color: #191920;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* 选中按钮样式：蓝色背景，蓝色文字 */
  .selectedButton {
    background-color: rgba(50, 109, 255, 0.2);
    color: #326dff;
    font-weight: normal;
    border: 1px solid #326dff;
  }

  /* 确保按钮组的样式正确应用 */
  .customFooterTitle :global(.semi-button-group) .unselectedButton,
  .customFooterTitle :global(.semi-button-group) .selectedButton {
    box-shadow: none;
    width: 84px;
    height: 36px;
    border-radius: 4px;
  }
  .customFooter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  
    &.customFooterShowArea {
      justify-content: flex-end;
    }
  }
}

